﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Test
{
    public partial class WebAjaxTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        [WebMethod]
        public static string ajaxTest(int bufferCount)
        {
            int temp = 0;
            if (bufferCount>7)
            {
                return "no";
            }
            var sb = new StringBuilder();
            for (int i = 1; i <= 45; i++)
            {
                temp = (45 * (bufferCount-1)) + i-1;
                sb.Append("bufferCount:是" + bufferCount + "           " +  temp + "<br />");
            }
            //System.Threading.Thread.Sleep(600);
            return sb.ToString() + "  <div id=\"loadMB1\" class=\"feed_lding MIB_txtbl\"><em class=\"icon_lding\"></em>正在加载，请稍候...</div>";
        }
    }
}